package com.example.demob.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.alibaba.dubbo.rpc.RpcContext;
import com.example.demob.service.TestService;
import org.springframework.stereotype.Component;


@Service
@Component
public class TestServiceImpl implements TestService {


    @Override
    public String test(){
         String ip = (String) RpcContext.getContext().getAttachment("ip");
         System.out.println("========"+ip);
        return "test demo B======="+ip;
    }
}
